<% /* $Id: home.jsp 97 2010-11-12 14:09:47Z altdotua@gmail.com $ */ %>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ include file="header.jsp" %>
	
	<h2><%= bundle.getString("W_SERVER_STATE") %></h2>
	<table class="b0">
		<tr>
			<td class="b0"><%= bundle.getString("W_SERVER_TIME") %>:</td>
			<td class="b0"><%= new Date() %></td>
		</tr>
		<tr>
			<td class="b0"><%= bundle.getString("W_START_TIME") %>:</td>
			<td class="b0"><%= contest.getStartTime() %></td>
		</tr>
		<tr>
			<td class="b0"><%= bundle.getString("W_FINISH_TIME") %>:</td>
			<td class="b0"><%= contest.getFinishTime() %></td>
		</tr>
		<tr>
			<td class="b0"><%= bundle.getString("W_DURATION") %>:</td>
			<td class="b0"><%= Formatters.formatContestTime((contest.getFinishTime().getTime() - contest.getStartTime().getTime()) / 60000) %></td>
		</tr>
	</table>
	<h2><%= bundle.getString("W_RULES") %></h2>
	<p><b><%= bundle.getString("W_CONTEST_TYPE") %>: <%= contest.getContestType() %></b></p>
	<table class="b0">
		<tr>
			<td class="b0"><%= bundle.getString("W_VIRTUAL_CONTEST") %>:</td>
			<td class="b0"><%= bundle.getString(contest.getVirtual() ? "W_YES" : "W_NO") %></td>
		</tr>
		<tr>
			<td class="b0"><%= bundle.getString("W_OPEN_FOR_ALL") %>:</td>
			<td class="b0"><%= bundle.getString(contest.getAllowAllUsers() ? "W_YES" : "W_NO") %></td>
		</tr>
		<tr>
			<td class="b0">Кількість спроб на задачу</td>
			<td class="b0"><%= "Необмежена" %></td>
		</tr>
	</table>
<%
	Long pageGenerationFinished = new Date().getTime();
%>

<!-- <%= "" + ((pageGenerationFinished - pageGenerationStarted)) + " ms" %>  -->

<%@ include file="footer.jsp" %>